// 给父元素div设置内边距，适用于整个页面
.article {
  body {
    font-size: 'PingFangSC-Light', Arial, Helvetica, sans-serif, 'Hiragino Sans GB';
  }

  margin: 16px;

  // 返回按钮
  .backButton {
    position: fixed;
    z-index: 10000;
    right: 10px;
    top: 40%;
  }

  // 标题
  h1 {
    margin-bottom: 0.53333rem;
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: 600;
  }

  // 用户信息
  .myInfo {
    //头像、用户名采用弹性布局方式横向排列
    display: flex;
    position: relative;

    &>img {
      border-radius: 50%;
      width: 63px;
    }

    ul {
      //设置行高，使文本垂直方向对齐
      line-height: 0.58667rem;
      margin: 10px;

      span {
        background-color: #ffdb26;
        border: 1px solid rgb(167, 165, 165);
        font-size: 0.26667rem;
        color: #474747;
        padding: 0 0.08rem;
        line-height: 0.32rem;
        border-radius: 0.05333rem;
        //span元素变为行内块设置宽高有效
        display: inline-block;
        margin-left: 10px;
        margin-bottom: 4px;
      }
    }

    .share {
      position: absolute;
      right: 50px;
      top: 25px;
    }

    .van-popup__close-icon--top-right {
      top: 0;
      right: 0;
    }
  }

  // 旅行信息
  .travelInfo {
    margin: 20px 0 10px;
    border: 1px solid #e5e5e5;
    padding: 0.133rem 0 0.48rem;
    position: relative;
    font-size: 0.373rem;
    line-height: 0.427rem;

    h2 {
      font-size: 0.267rem;
      color: #767676;
      position: absolute;
      background-color: #fff;
      line-height: 0.373rem;
      padding: 0 0.107rem;
      left: 0.427rem;
      top: -0.187rem;
    }

    ul {
      //给父级ul设置弹性布局，使li横向排列
      display: flex;

      li {
        margin: 0.4rem 0 0 0.48rem;
        width: 140px;
        color: #474747;
        font-size: 14px;
      }
    }
  }

  // 文章正文
  .main {
    &.limit {
      height: 200px;
      overflow: hidden;
      visibility: visible;
      display: block;
      position: relative;

      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        display: block;
        width: 100%;
        height: 90px;
        background: -moz-linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
        background: -webkit-linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
      }
    }

    img {
      width: 100%;
      height: 100%;
    }
  }

  // 展开收起文字
  .showMore {
    color: #50bdb9;
    text-align: center;
    font-size: 16px;
  }

  // 收起按钮
  .closeButton {
    position: fixed;
    right: 10px;
    top: 50%;
  }

  // 更多游记
  .others-travel {
    padding-top: 24px;

    .title {
      padding-left: 16px;
      font-size: 20px;
      font-weight: 900;
      line-height: 1;
      color: #544641;
    }

    .list-item {
      padding: 16px;
      background-color: #fff;
      border-bottom: 4px solid #f9f9f6;

      .cover {
        width: 120px;
        height: 80px;
        float: left;
        margin-right: 8px;
      }

      .list-title {
        height: 44px;
        overflow: hidden;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.38;
        letter-spacing: 0;
        color: #544641;
      }

      .message {
        margin-top: 14px;
        display: inline-block;
        border-radius: 16px 16px 0 0;
        background-color: #fff;

        .van-image {
          width: 24px;
          height: 24px;
          float: left;
          margin-top: -3px;
          border-radius: 12px;
          margin-right: 4px;
        }

        span {
          margin-right: 4px;
          height: 20px;
          font-size: 12px;
          line-height: 1.67;
          letter-spacing: 0;
          color: #948e8c;
        }
      }
    }
  }

  // 间隔
  .interval {
    width: 100%;
    background-color: #fff;
    height: 40px;
  }
}